@extends('home.enterprises.layout')
@section('content')
<div class="select-index">
<div class="resumes-index-title">
        <a class="menu current" href="/rdapply/resumes/apply/index">主动投递简历</a>

        <a class="fl-button " href="{{ url('/home/enterprise/jobs/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}">按职位查看简历</a>
</div>
<form action="/RdApply/Resumes/Apply/getcustomsearchpanel" data-ajax="true" data-ajax-begin="loadingPanel" data-ajax-method="post" data-ajax-mode="replace" data-ajax-success="refreshControl" data-ajax-update="#customSearch" id="form2" method="post" name="form2" onkeydown="if(event.keyCode==13){return false;}">    <div>

    </div> 
</form>

@if(session('info'))
	{{ session('info') }}
@endif
@if(session('mail'))
	{{ session('mail') }}
@endif
<div class="add_container clearfix mt10">
    <!-- 头部气泡框 begin -->
    <div class="index_con" id="home_poptips" style="display: none;">
        <div class="chat-bubble">
            <div class="addbox">
                <div class="addstylec marb6">新简历太少？立即购买置顶服</div>
                <div class="addstylec">务,效果提升<font class="addnumber">8</font>倍! <a href="http://e.zhaopin.com/products/1/redirectorder.do" class="addzd_bubble __ga__jianliguanlitips_jianliguanlitipstanchu_001" onclick="ZP.analysis.init_monitor_analy(this,'jianliguanlitips','jianliguanlitipstanchu','001');;">职位置顶</a></div>
                <i class="addposi_common addposi_close"></i>
            </div>
            <i class="chat-bubble-arrow-border"></i>
            <i class="chat-bubble-arrow"></i>
        </div>
    </div>
    <!-- 头部气泡框 end -->
    <ul class="tab-ul fl" id="UlResumeState" style="margin:0 70px">
        <li><span id="submitWait" class="__ga__RDresume_pending_001 f_cur nogap" >
                <img class="mr5" src="http://images.zhaopin.com/2014/rd2/img/Inboxstatuico-dcla.png" width="13" align="absmiddle" height="16">
                待处理<font style="color: rgb(49, 90, 170); font-weight: lighter;" id="f_resume_state_num_1">({{ count($data[0]) }})</font></span>
        </li>
        <li><span id="submitBack" class="__ga__RDresume_alternate_001  nogap" >
                <img class="mr5" src="http://images.zhaopin.com/2014/rd2/img/Inboxstatuico-bx.png" width="12" align="absmiddle" height="10">
                待沟通<font style="" id="f_resume_state_num_2">({{ count($data[1]) }})</font></span></li>
        <li class="on">
            <span id="submitHaveSend" class="__ga__RDresume_sentmail_001  nogap">
                <img class="mr5" src="http://images.zhaopin.com/2014/rd2/img/Inboxstatuico-yfs.png" width="15" align="absmiddle" height="14">
                已发面试邀请<font style="" id="f_resume_state_num_3">({{ count($data[2]) }})</font>
                <select id="selFeedbackState" name="selFeedbackState" style="display:none;">
                    <option value="-1">-全部状态-</option>
                    <option value="1">已接受</option>
                    <option value="2">已拒绝</option>
                    <option value="0">待确认</option>
                    
                </select>
            </span>
        </li>
        <li><span id="submitImproper" class="__ga__RDresume_refuse_001  nogap" >
                <img class="mr5" src="http://images.zhaopin.com/2014/rd2/img/Inboxstatuico-bhs.png" width="13" align="absmiddle" height="16">
                不合适<font style="" id="f_resume_state_num_4">({{ count($data[3]) }})</font></span></li>
    </ul>
    
    </div>

<!-- 等待处理 -->
@if(count($data[0]))  
<div class="ip_order"  style='width:690px;margin-top:25px;' idi = '0'>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tbody><tr>
			<th>职位名称</th>
			<th>职位类别</th>
			<th>申请人</th>
			<th>期望工作地点</th>
			<th>期望工作职位</th>
			<th>期望工作行业</th>
			<th>操作</th>
		</tr>
		@foreach($data[0] as $k => $v)
		<tr>
			<td class="title" style='background:000;font-weight:100;'>
				<div title="{{ $v -> workname }}">
				{{  mb_substr($v -> workname,0,7) }}
				...
					
				</div>
			</td>
			<td>
				{{ mb_substr($v -> p_id,0,4) }}....
				
			</td>
			 <!-- 
			<td>
				 - 
			</td>-->
			
			
			<td class="resumeCount" id="resumeCount_null" positionnumber="null">
			{{ $v -> name }}
			</td>
			
			
			
			<td class="td_place">{{ $v -> DesiredCity }}</td>
			
			<td>{{ mb_substr($v -> desired_Jobtype_id,0,4) }}...</td>
			
			<td>{{ mb_substr($v -> DesiredIndustry,0,4) }}...</td>
			<td>
				 <a href="javascript:void(0)" onclick='showview({{  $v -> id }})' >查看</a>
				 /<a href="javascript:void(0)" onclick="return payJob({{ $v -> resrec_id }},1)">待沟通</a>   /<a href="javascript:void(0)" onclick="return payJob({{ $v -> resrec_id }},2)">面试</a>  /<a href="javascript:void(0);" onclick="return payJob('{{ $v -> resrec_id }}',4); " target="_self">不合适</a> 
			</td>
		</tr>
		<div class="divPopup_{{ $v -> id }}"  style="width: 650px; height: auto; position: absolute;  top: -63px; left: 70px; z-index: 9000;display:none"><div id="popupTit" style="cursor: auto;"><div id="popupClose" class="popupClose_{{ $v -> id }}" onclick="viewclose({{ $v -> id }})">close</div><div id="popupTitle">预览简历</div></div><div id="popupCon"><div id="popupInnerCon"><title>简历预览</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="robots" content="nofollow"><link rel="stylesheet" type="text/css" href="http://img00.zhaopin.cn/2012/css/reset.min.css" media="all"><link rel="stylesheet" type="text/css" href="http://i.zhaopin.com/Content/css/resume_preview.css" media="all"><div class="resumeBody">
 <div class="summary" style="margin-top:35px"><img class="headerImg" alt="{{ $v -> name }}" src="http://img00.zhaopin.cn/2012/img/my/v5/lookResumes.jpg" width="70" align="right" height="90"><h1>{{ $v -> name }}</h1>
 @if($v -> sex ==1 )
 男
 @else($v -> sex == 0)
 女
 @endif
 <span class="ver-line">|</span>{{ $v -> birthday }}生<span class="ver-line">|</span>
            户口：
 @if(count($v -> here) == 1)
	{{ $v -> here[0] }}
 @else

 {{ $v -> here[0] }}-{{ $v -> here[1] }}
 @endif<span class="ver-line">|</span>
              现居住于:
 @if(count($v -> city) == 1)
	{{ $v -> city[0] }}
 @else

 {{ $v -> city[0] }}-{{ $v -> city[1] }}
 @endif<p>{{ $v -> phone }}</p><p>
              E-mail：<a href="mailto:{{ $v -> email }}">{{ $v -> email }}</a></p></div>
 <dl class="details"><dt><h5>求职意向</h5></dt><dd><ul><li><strong>工作性质：</strong>
 @foreach($v -> DesiredEmploymentType as $dk => $dv)
 
 @if($dv == 1)
 全职
 @elseif($dv == 2)
 兼职
 @elseif($dv == 4)
 实习
 @endif
 、
 @endforeach</li><li><strong>期望职业：</strong>{{ $v -> desired_Jobtype_id }}</li><li><strong>期望行业：</strong>{{ $v -> DesiredIndustry }}</li><li><strong>工作地区：</strong>{{ $v -> DesiredCity }}</li><li><strong>期望月薪：</strong>{{ $v -> DesiredSalaryScope }}</li>
 <li><strong>目前状况：</strong>{{ $v -> CurrentCareerStatus }}</li></ul></dd>
 <dt><h5>教育经历</h5></dt><dd>
 <div class="education-background"><p>{{ $v -> EduDateStartYear }}{{ $v -> EduDateStartMonth }} -- {{ $v -> EduDateEndYear }}{{ $v -> EduDateEndMonth }}</p><h6>{{ $v -> SchoolName }}<span class="ver-line">|</span>{{ $v -> MajorName }}<span class="ver-line">|</span>{{ $v -> EducationLevel }}<span class="ver-line">|</span>
 @if($v -> IsTongZhao == 'y')
 统招
 @else
 非统招
 @endif</h6></div></dd></dl><input id="neturlparam" value="AppId=1&amp;Id=667378967&amp;Timestamp=1476016057&amp;Callback=&amp;signature=8DC93EBFA27AADAB3965C652450995C6" type="hidden"></div></div></div></div>
<!--list-->
		@endforeach
		
		
	</tbody></table>
	<div class="pageNum">
		<div class="num2">
			{{-- !! $data[0] -> appends($request) -> render() !! --}}
			<span><a href="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}&page=1">首页</a> </span>
			<span> <a href="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}&page={{ $data[0] -> lastPage() }}">尾页</a></span>
		</div>
		<div class="num1">
			<form action="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}" method="get">
			 <input name = "token" value="{{ session('master['.$id.']') -> token }}" type="hidden">
				第{{ empty($request['page'])?1:$request['page'] }}/{{ $data[0] -> lastPage() }}页，去 <input name="page" class="inputText" type="text" value="{{ empty($request['page'])?1:$request['page'] }}"> 页 <input name="" src="/images/pagenum_bn.gif" title="GO" alt="GO" width="21" type="image" height="16">
			</form>
		</div>
		<div class="num3">
			<span>共<b>{{ count($data[0]) }}</b>条信息
			</span>
		</div>
	</div>
</div>

<form id='recpay'>
	<input type="hidden" name='token' value="{{ session('master['.$id.']') -> token }}">
</form>
<script>
	function showview()
	{
		$('.divPopup_'+arguments[0]).fadeIn();
	}
	function viewclose()
	{
		$('.divPopup_'+arguments[0]).fadeOut();
	}
	
	function payJob()
	{
		// alert(arguments[0]);
		// alert(arguments[1]);
		$('#rec').val(arguments[0]);
		$('#recpay').attr('action',"{{ url('/home/enterprise/resumes/status') }}/{{ $id }}/"+arguments[0]+'/'+arguments[1]);
		$('#recpay').attr('method',"get");
		// alert($('#recform').attr('action'));
		$('#recpay').submit();
	}
</script>

@else
<div class="noSearch" idi = '0'>
        <p>当前状态下暂无简历，您可以点击其他状态查看简历</p>
</div>
@endif


<!-- 有待沟通 -->
@if(count($data[1]))  
<div class="ip_order"  style='width:690px;margin-top:25px;display:none;' idi = '1'>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tbody><tr>
			<th>职位名称</th>
			<th>职位类别</th>
			<th>申请人</th>
			<th>期望工作地点</th>
			<th>期望工作职位</th>
			<th>期望工作行业</th>
			<th>操作</th>
		</tr>
		@foreach($data[1] as $k => $v)
		<tr>
			<td class="title" style='background:000;font-weight:100;'>
				<div title="{{ $v -> workname }}">
				{{  mb_substr($v -> workname,0,7) }}
				...
					
				</div>
			</td>
			<td>
				{{ mb_substr($v -> p_id,0,4) }}....
				
			</td>
			 <!-- 
			<td>
				 - 
			</td>-->
			
			
			<td class="resumeCount" id="resumeCount_null" positionnumber="null">
			{{ $v -> name }}
			</td>
			
			
			
			<td class="td_place">{{ $v -> DesiredCity }}</td>
			
			<td>{{ mb_substr($v -> desired_Jobtype_id,0,4) }}...</td>
			
			<td>{{ mb_substr($v -> DesiredIndustry,0,4) }}...</td>
			<td>
				 <a href="javascript:void(0)" onclick='showview({{  $v -> id }})' >查看</a>
				 
			</td>
		</tr>
		<div class="divPopup_{{ $v -> id }}"  style="width: 650px; height: auto; position: absolute;  top: -63px; left: 70px; z-index: 9000;display:none"><div id="popupTit" style="cursor: auto;"><div id="popupClose" class="popupClose_{{ $v -> id }}" onclick="viewclose({{ $v -> id }})">close</div><div id="popupTitle">预览简历</div></div><div id="popupCon"><div id="popupInnerCon"><title>简历预览</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="robots" content="nofollow"><link rel="stylesheet" type="text/css" href="http://img00.zhaopin.cn/2012/css/reset.min.css" media="all"><link rel="stylesheet" type="text/css" href="http://i.zhaopin.com/Content/css/resume_preview.css" media="all"><div class="resumeBody">
 <div class="summary" style="margin-top:35px"><img class="headerImg" alt="{{ $v -> name }}" src="http://img00.zhaopin.cn/2012/img/my/v5/lookResumes.jpg" width="70" align="right" height="90"><h1>{{ $v -> name }}</h1>
 @if($v -> sex ==1 )
 男
 @else($v -> sex == 0)
 女
 @endif
 <span class="ver-line">|</span>{{ $v -> birthday }}生<span class="ver-line">|</span>
            户口：
 @if(count($v -> here) == 1)
	{{ $v -> here[0] }}
 @else

 {{ $v -> here[0] }}-{{ $v -> here[1] }}
 @endif<span class="ver-line">|</span>
              现居住于:
 @if(count($v -> city) == 1)
	{{ $v -> city[0] }}
 @else

 {{ $v -> city[0] }}-{{ $v -> city[1] }}
 @endif<p>{{ $v -> phone }}</p><p>
              E-mail：<a href="mailto:{{ $v -> email }}">{{ $v -> email }}</a></p></div>
 <dl class="details"><dt><h5>求职意向</h5></dt><dd><ul><li><strong>工作性质：</strong>
 @foreach($v -> DesiredEmploymentType as $dk => $dv)
 
 @if($dv == 1)
 全职
 @elseif($dv == 2)
 兼职
 @elseif($dv == 4)
 实习
 @endif
 、
 @endforeach</li><li><strong>期望职业：</strong>{{ $v -> desired_Jobtype_id }}</li><li><strong>期望行业：</strong>{{ $v -> DesiredIndustry }}</li><li><strong>工作地区：</strong>{{ $v -> DesiredCity }}</li><li><strong>期望月薪：</strong>{{ $v -> DesiredSalaryScope }}</li>
 <li><strong>目前状况：</strong>{{ $v -> CurrentCareerStatus }}</li></ul></dd>
 <dt><h5>教育经历</h5></dt><dd>
 <div class="education-background"><p>{{ $v -> EduDateStartYear }}{{ $v -> EduDateStartMonth }} -- {{ $v -> EduDateEndYear }}{{ $v -> EduDateEndMonth }}</p><h6>{{ $v -> SchoolName }}<span class="ver-line">|</span>{{ $v -> MajorName }}<span class="ver-line">|</span>{{ $v -> EducationLevel }}<span class="ver-line">|</span>
 @if($v -> IsTongZhao == 'y')
 统招
 @else
 非统招
 @endif</h6></div></dd></dl><input id="neturlparam" value="AppId=1&amp;Id=667378967&amp;Timestamp=1476016057&amp;Callback=&amp;signature=8DC93EBFA27AADAB3965C652450995C6" type="hidden"></div></div></div></div>
<!--list-->
		@endforeach
		
		
	</tbody></table>
	<div class="pageNum">
		<div class="num2">
			{{-- !! $data[1] -> appends($request) -> render() !! --}}
			<span><a href="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}&page=1">首页</a> </span>
			<span> <a href="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}&page={{ $data[1] -> lastPage() }}">尾页</a></span>
		</div>
		<div class="num1">
			<form action="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}" method="get">
			 <input name = "token" value="{{ session('master['.$id.']') -> token }}" type="hidden">
				第{{ empty($request['page'])?1:$request['page'] }}/{{ $data[1] -> lastPage() }}页，去 <input name="page" class="inputText" type="text" value="{{ empty($request['page'])?1:$request['page'] }}"> 页 <input name="" src="/images/pagenum_bn.gif" title="GO" alt="GO" width="21" type="image" height="16">
			</form>
		</div>
		<div class="num3">
			<span>共<b>{{ count($data[1]) }}</b>条信息
			</span>
		</div>
	</div>
</div>

<form id='recpay'>
	<input type="hidden" name='token' value="{{ session('master['.$id.']') -> token }}">
</form>
<script>
	function showview()
	{
		$('.divPopup_'+arguments[0]).fadeIn();
	}
	function viewclose()
	{
		$('.divPopup_'+arguments[0]).fadeOut();
	}
	
	function payJob()
	{
		// alert(arguments[0]);
		// alert(arguments[1]);
		$('#rec').val(arguments[0]);
		$('#recpay').attr('action',"{{ url('/home/enterprise/resumes/status') }}/{{ $id }}/"+arguments[0]+'/'+arguments[1]);
		$('#recpay').attr('method',"get");
		// alert($('#recform').attr('action'));
		$('#recpay').submit();
	}
</script>

@else
<div class="noSearch" idi = '1' style='display:none;'>
        <p>当前状态下暂无简历，您可以点击其他状态查看简历</p>
</div>
@endif



<!-- 面试 -->
@if(count($data[2]))  
<div class="ip_order"  style='width:690px;margin-top:25px;display:none;' idi = '2'>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tbody><tr>
			<th>职位名称</th>
			<th>职位类别</th>
			<th>申请人</th>
			<th>期望工作地点</th>
			<th>期望工作职位</th>
			<th>期望工作行业</th>
			<th>操作</th>
		</tr>
		@foreach($data[2] as $k => $v)
		<tr>
			<td class="title" style='background:000;font-weight:100;'>
				<div title="{{ $v -> workname }}">
				{{  mb_substr($v -> workname,0,7) }}
				...
					
				</div>
			</td>
			<td>
				{{ mb_substr($v -> p_id,0,4) }}....
				
			</td>
			 <!-- 
			<td>
				 - 
			</td>-->
			
			
			<td class="resumeCount" id="resumeCount_null" positionnumber="null">
			{{ $v -> name }}
			</td>
			
			
			
			<td class="td_place">{{ $v -> DesiredCity }}</td>
			
			<td>{{ mb_substr($v -> desired_Jobtype_id,0,4) }}...</td>
			
			<td>{{ mb_substr($v -> DesiredIndustry,0,4) }}...</td>
			<td>
				 <a href="javascript:void(0)" onclick='showview({{  $v -> id }})' >查看</a>
				 /<a href="javascript:void(0)" onclick="return payJob({{ $v -> resrec_id }},6)">收下</a>   /<a href="javascript:void(0);" onclick="return payJob('{{ $v -> resrec_id }}',4); " target="_self">不合适</a> 
			</td>
		</tr>
		<div class="divPopup_{{ $v -> id }}"  style="width: 650px; height: auto; position: absolute;  top: -63px; left: 70px; z-index: 9000;display:none"><div id="popupTit" style="cursor: auto;"><div id="popupClose" class="popupClose_{{ $v -> id }}" onclick="viewclose({{ $v -> id }})">close</div><div id="popupTitle">预览简历</div></div><div id="popupCon"><div id="popupInnerCon"><title>简历预览</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="robots" content="nofollow"><link rel="stylesheet" type="text/css" href="http://img00.zhaopin.cn/2012/css/reset.min.css" media="all"><link rel="stylesheet" type="text/css" href="http://i.zhaopin.com/Content/css/resume_preview.css" media="all"><div class="resumeBody">
 <div class="summary" style="margin-top:35px"><img class="headerImg" alt="{{ $v -> name }}" src="http://img00.zhaopin.cn/2012/img/my/v5/lookResumes.jpg" width="70" align="right" height="90"><h1>{{ $v -> name }}</h1>
 @if($v -> sex ==1 )
 男
 @else($v -> sex == 0)
 女
 @endif
 <span class="ver-line">|</span>{{ $v -> birthday }}生<span class="ver-line">|</span>
            户口：
 @if(count($v -> here) == 1)
	{{ $v -> here[0] }}
 @else

 {{ $v -> here[0] }}-{{ $v -> here[1] }}
 @endif<span class="ver-line">|</span>
              现居住于:
 @if(count($v -> city) == 1)
	{{ $v -> city[0] }}
 @else

 {{ $v -> city[0] }}-{{ $v -> city[1] }}
 @endif<p>{{ $v -> phone }}</p><p>
              E-mail：<a href="mailto:{{ $v -> email }}">{{ $v -> email }}</a></p></div>
 <dl class="details"><dt><h5>求职意向</h5></dt><dd><ul><li><strong>工作性质：</strong>
 @foreach($v -> DesiredEmploymentType as $dk => $dv)
 
 @if($dv == 1)
 全职
 @elseif($dv == 2)
 兼职
 @elseif($dv == 4)
 实习
 @endif
 、
 @endforeach</li><li><strong>期望职业：</strong>{{ $v -> desired_Jobtype_id }}</li><li><strong>期望行业：</strong>{{ $v -> DesiredIndustry }}</li><li><strong>工作地区：</strong>{{ $v -> DesiredCity }}</li><li><strong>期望月薪：</strong>{{ $v -> DesiredSalaryScope }}</li>
 <li><strong>目前状况：</strong>{{ $v -> CurrentCareerStatus }}</li></ul></dd>
 <dt><h5>教育经历</h5></dt><dd>
 <div class="education-background"><p>{{ $v -> EduDateStartYear }}{{ $v -> EduDateStartMonth }} -- {{ $v -> EduDateEndYear }}{{ $v -> EduDateEndMonth }}</p><h6>{{ $v -> SchoolName }}<span class="ver-line">|</span>{{ $v -> MajorName }}<span class="ver-line">|</span>{{ $v -> EducationLevel }}<span class="ver-line">|</span>
 @if($v -> IsTongZhao == 'y')
 统招
 @else
 非统招
 @endif</h6></div></dd></dl><input id="neturlparam" value="AppId=1&amp;Id=667378967&amp;Timestamp=1476016057&amp;Callback=&amp;signature=8DC93EBFA27AADAB3965C652450995C6" type="hidden"></div></div></div></div>
<!--list-->
		@endforeach
		
		
	</tbody></table>
	<div class="pageNum">
		<div class="num2">
			{{-- !! $data[2] -> appends($request) -> render() !! --}}
			<span><a href="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}&page=1">首页</a> </span>
			<span> <a href="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}&page={{ $data[2] -> lastPage() }}">尾页</a></span>
		</div>
		<div class="num1">
			<form action="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}" method="get">
			 <input name = "token" value="{{ session('master['.$id.']') -> token }}" type="hidden">
				第{{ empty($request['page'])?1:$request['page'] }}/{{ $data[2] -> lastPage() }}页，去 <input name="page" class="inputText" type="text" value="{{ empty($request['page'])?1:$request['page'] }}"> 页 <input name="" src="/images/pagenum_bn.gif" title="GO" alt="GO" width="21" type="image" height="16">
			</form>
		</div>
		<div class="num3">
			<span>共<b>{{ count($data[2]) }}</b>条信息
			</span>
		</div>
	</div>
</div>

<form id='recpay'>
	<input type="hidden" name='token' value="{{ session('master['.$id.']') -> token }}">
</form>
<script>
	function showview()
	{
		$('.divPopup_'+arguments[0]).fadeIn();
	}
	function viewclose()
	{
		$('.divPopup_'+arguments[0]).fadeOut();
	}
	
	function payJob()
	{
		// alert(arguments[0]);
		// alert(arguments[1]);
		$('#rec').val(arguments[0]);
		$('#recpay').attr('action',"{{ url('/home/enterprise/resumes/status') }}/{{ $id }}/"+arguments[0]+'/'+arguments[1]);
		$('#recpay').attr('method',"get");
		// alert($('#recform').attr('action'));
		$('#recpay').submit();
	}
</script>

@else
<div class="noSearch" idi = '2' style='display:none;'>
        <p>当前状态下暂无简历，您可以点击其他状态查看简历</p>
</div>
@endif





<!-- 不合适 -->
@if(count($data[3]))  
<div class="ip_order"  style='width:690px;margin-top:25px;display:none;' idi = '3'>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tbody><tr>
			<th>职位名称</th>
			<th>职位类别</th>
			<th>申请人</th>
			<th>期望工作地点</th>
			<th>期望工作职位</th>
			<th>期望工作行业</th>
			<th>操作</th>
		</tr>
		@foreach($data[3] as $k => $v)
		<tr>
			<td class="title" style='background:000;font-weight:100;'>
				<div title="{{ $v -> workname }}">
				{{  mb_substr($v -> workname,0,7) }}
				...
					
				</div>
			</td>
			<td>
				{{ mb_substr($v -> p_id,0,4) }}....
				
			</td>
			 <!-- 
			<td>
				 - 
			</td>-->
			
			
			<td class="resumeCount" id="resumeCount_null" positionnumber="null">
			{{ $v -> name }}
			</td>
			
			
			
			<td class="td_place">{{ $v -> DesiredCity }}</td>
			
			<td>{{ mb_substr($v -> desired_Jobtype_id,0,4) }}...</td>
			
			<td>{{ mb_substr($v -> DesiredIndustry,0,4) }}...</td>
			<td>
				 <a href="javascript:void(0)" onclick='showview({{  $v -> id }})' >查看</a>
			</td>
		</tr>
		<div class="divPopup_{{ $v -> id }}"  style="width: 650px; height: auto; position: absolute;  top: -63px; left: 70px; z-index: 9000;display:none"><div id="popupTit" style="cursor: auto;"><div id="popupClose" class="popupClose_{{ $v -> id }}" onclick="viewclose({{ $v -> id }})">close</div><div id="popupTitle">预览简历</div></div><div id="popupCon"><div id="popupInnerCon"><title>简历预览</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="robots" content="nofollow"><link rel="stylesheet" type="text/css" href="http://img00.zhaopin.cn/2012/css/reset.min.css" media="all"><link rel="stylesheet" type="text/css" href="http://i.zhaopin.com/Content/css/resume_preview.css" media="all"><div class="resumeBody">
 <div class="summary" style="margin-top:35px"><img class="headerImg" alt="{{ $v -> name }}" src="http://img00.zhaopin.cn/2012/img/my/v5/lookResumes.jpg" width="70" align="right" height="90"><h1>{{ $v -> name }}</h1>
 @if($v -> sex ==1 )
 男
 @else($v -> sex == 0)
 女
 @endif
 <span class="ver-line">|</span>{{ date('Y年m月',$v -> birthday) }}生<span class="ver-line">|</span>
            户口：
 @if(count($v -> here) == 1)
	{{ $v -> here[0] }}
 @else

 {{ $v -> here[0] }}-{{ $v -> here[1] }}
 @endif<span class="ver-line">|</span>
              现居住于:
 @if(count($v -> city) == 1)
	{{ $v -> city[0] }}
 @else

 {{ $v -> city[0] }}-{{ $v -> city[1] }}
 @endif<p>{{ $v -> phone }}</p><p>
              E-mail：<a href="mailto:{{ $v -> email }}">{{ $v -> email }}</a></p></div>
 <dl class="details"><dt><h5>求职意向</h5></dt><dd><ul><li><strong>工作性质：</strong>
 @foreach($v -> DesiredEmploymentType as $dk => $dv)
 
 @if($dv == 1)
 全职
 @elseif($dv == 2)
 兼职
 @elseif($dv == 4)
 实习
 @endif
 、
 @endforeach</li><li><strong>期望职业：</strong>{{ $v -> desired_Jobtype_id }}</li><li><strong>期望行业：</strong>{{ $v -> DesiredIndustry }}</li><li><strong>工作地区：</strong>{{ $v -> DesiredCity }}</li><li><strong>期望月薪：</strong>{{ $v -> DesiredSalaryScope }}</li>
 <li><strong>目前状况：</strong>{{ $v -> CurrentCareerStatus }}</li></ul></dd>
 <dt><h5>教育经历</h5></dt><dd>
 <div class="education-background"><p>{{ $v -> EduDateStartYear }}{{ $v -> EduDateStartMonth }} -- {{ $v -> EduDateEndYear }}{{ $v -> EduDateEndMonth }}</p><h6>{{ $v -> SchoolName }}<span class="ver-line">|</span>{{ $v -> MajorName }}<span class="ver-line">|</span>{{ $v -> EducationLevel }}<span class="ver-line">|</span>
 @if($v -> IsTongZhao == 'y')
 统招
 @else
 非统招
 @endif</h6></div></dd></dl><input id="neturlparam" value="AppId=1&amp;Id=667378967&amp;Timestamp=1476016057&amp;Callback=&amp;signature=8DC93EBFA27AADAB3965C652450995C6" type="hidden"></div></div></div></div>
<!--list-->
		@endforeach
		
		
	</tbody></table>
	<div class="pageNum">
		<div class="num2">
			{{-- !! $data[3] -> appends($request) -> render() !! --}}
			<span><a href="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}&page=1">首页</a> </span>
			<span> <a href="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}?token={{ session('master['.$id.']') -> token }}&page={{ $data[3] -> lastPage() }}">尾页</a></span>
		</div>
		<div class="num1">
			<form action="{{ url('/home/enterprise/resumes/index') }}/{{ $id }}" method="get">
			 <input name = "token" value="{{ session('master['.$id.']') -> token }}" type="hidden">
				第{{ empty($request['page'])?1:$request['page'] }}/{{ $data[3] -> lastPage() }}页，去 <input name="page" class="inputText" type="text" value="{{ empty($request['page'])?1:$request['page'] }}"> 页 <input name="" src="/images/pagenum_bn.gif" title="GO" alt="GO" width="21" type="image" height="16">
			</form>
		</div>
		<div class="num3">
			<span>共<b>{{ count($data[3]) }}</b>条信息
			</span>
		</div>
	</div>
</div>

<form id='recpay'>
	<input type="hidden" name='token' value="{{ session('master['.$id.']') -> token }}">
</form>
<script>
	function showview()
	{
		$('.divPopup_'+arguments[0]).fadeIn();
	}
	function viewclose()
	{
		$('.divPopup_'+arguments[0]).fadeOut();
	}
	
	function payJob()
	{
		// alert(arguments[0]);
		// alert(arguments[1]);
		$('#rec').val(arguments[0]);
		$('#recpay').attr('action',"{{ url('/home/enterprise/resumes/status') }}/{{ $id }}/"+arguments[0]+'/'+arguments[1]);
		$('#recpay').attr('method',"get");
		// alert($('#recform').attr('action'));
		$('#recpay').submit();
	}
</script>

@else
<div class="noSearch" idi = '3' style='display:none;'>
        <p>当前状态下暂无简历，您可以点击其他状态查看简历</p>
</div>
@endif



<script type="text/javascript">
	$('.nogap').each(function(i,v){
		$(this).attr('idi',i);
		$(this).click(function(){
			$('.f_cur').attr('class',$(this).attr('class'));
			$(this).attr('class',$(this).attr('class')+' f_cur');
			// console.log($('.ip_order'));
			// console.log($('.noSearch'));
			$('.ip_order').fadeOut();
			$('.noSearch').fadeOut();
			var th = $(this).attr('idi')
			$('.ip_order').each(function(){
				if($(this).attr('idi') == th)
				{
					$(this).fadeIn();
				}
			});
			$('.noSearch').each(function(){
				if($(this).attr('idi') == th)
				{
					$(this).fadeIn();
				}
			});
			
			// $('.ip_order').eq($(this).attr('idi')).fadeIn();
			// $('.noSearch').eq($(this).attr('idi')).fadeIn();

		});
	});
	
</script>
    </div>
    <input name="SF_1_1_50" id="ResumeState" value="1" type="hidden">
    <input name="SF_1_1_51" id="InputFeedbackState" value="-1" type="hidden">
    <input name="SF_1_1_45" id="PositionNumber" value="" type="hidden">
    <input name="SF_1_1_44" id="GroupID" value="" type="hidden">
    <input name="SF_1_1_52" id="hiddenExpired" value="0" type="hidden">
    <input name="SF_1_1_49" id="FeedBack" value="0" type="hidden">
    <input name="IsInvited" id="IsInvited" value="0" type="hidden">
    <input name="position_city" value="[%%POSITION_CITY%%]" type="hidden">
    <input name="deptName" value="" type="hidden">
    <input name="select_unique_id" value="" type="hidden">
    <input name="selectedResumeList" value="" type="hidden">
    <input name="PageNo" type="hidden">
    <input name="PosState" type="hidden">
    <input name="MinRowID" value="" type="hidden">
    <input name="MaxRowID" value="2722819791" type="hidden">
    <input name="RowsCount" value="123" type="hidden">
    <input name="PagesCount" value="5" type="hidden">
    <input name="PageType" value="0" type="hidden">
    <input name="CurrentPageNum" id="CurrentPageNum" value="1" type="hidden">
    <input name="Position_IDs" value="[%%POSITION_IDS%%]" type="hidden">
    <input name="Position_ID" value="[%%POSITION_ID%%]" type="hidden">
    <input name="SortType" value="0" type="hidden">
    <input name="isCmpSum" value="0" type="hidden">
    <input name="SelectIndex_Opt" value="0" type="hidden">
    <input name="Resume_count" value="0" type="hidden">
    <input name="CID" value="76003417" id="CID" type="hidden">
    <!-- warlock.deng Begin-->
    <input name="forwardingEmailList" id="forwardingEmailList" value="" type="hidden">
    <input id="ressendemailbody" value="" type="hidden">
    <!-- warlock.deng End-->
    <!-- Trace Data Start -->
    <input id="dda_operatorid" value="200102146" type="hidden">
    <input id="dda_companyid" value="12007036" type="hidden">
    <input id="dda_type" value="cvinterview" type="hidden">
    <input id="dda_custom" value="" type="hidden">
    <input id="dda_source" value="" type="hidden">
    <input id="dda_position" value="latestresumelist" type="hidden">
    <input id="click_search_op_type" name="click_search_op_type" value="-1" type="hidden">
</form><div id="divLoading" style="display: none">
    <img src="http://img00.zhaopin.cn/2012/img/rd/loading1202.gif" border="0">
</div>

</div>
@endsection